package com.meilai.project.controller.mini.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author 张驰
 * @description 小程序登录入参对象
 * @date 2022-08-25 13:39
 */
@Data
@ApiModel
public class LoginParams {

    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "用户名不得为空")
    private String username;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不得为空")
    private String password;
}
